package cn.yeziji.forum.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * ForumAnswerEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(
    chain = true
)
@EqualsAndHashCode(
    callSuper = false
)
@FluentMybatis(
    table = "forum_answer",
    schema = "yzj_forum"
)
public class ForumAnswerEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /**
   */
  @TableId("id")
  private Integer id;

  /**
   * 回答内容 MD
   */
  @TableField("content")
  private String content;

  /**
   * 创建时间
   */
  @TableField("createTime")
  private Date createTime;

  /**
   * 逻辑删除
   */
  @TableField("delete")
  private Boolean delete;

  /**
   * 点赞数量
   */
  @TableField("goodNumber")
  private Integer goodNumber;

  /**
   * 评论时答案时的指定 id
   */
  @TableField("parentAnswerId")
  private Integer parentAnswerId;

  /**
   * 修改答案时间
   */
  @TableField("updateTime")
  private Date updateTime;

  /**
   * 用户 ID
   */
  @TableField("userId")
  private Integer userId;

  @Override
  public final Class entityClass() {
    return ForumAnswerEntity.class;
  }
}
